#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>

int main()
{
	int  s=0,sum=1;
	scanf("%d",&s);
	for (int i = 1; i <= s; i++)
	{
		sum *= i;
	}
	printf("%d", sum);
	return 0;
}